import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        int[]array={2,4,1,3,6,8,5,7};
        System.out.println("排序前数组"+Arrays.toString(array));
        CountSort.countSort(array);
        System.out.println("排序后数组"+Arrays.toString(array));
    }
}
